From b5f5201744f1d8824185d5ca4deb711621167468 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 11 Dec 2020 16:51:02 +0000 Subject: [PATCH] Disable gvfs and other GIO modules for build-time tests If running on a developer system, we don't want to interact with "larger" components like gnome-online-accounts. --- debian/rules | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 8ae4c45b36..de5cd25d42 100755 --- a/debian/rules +++ b/debian/rules @@ -187,7 +187,11 @@ ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) cp gtk/org.gtk.* debian/build/glib-2.0/schemas/ glib-compile-schemas debian/build/glib-2.0/schemas/ # Remove LD_PRELOAD so we don't run with fakeroot, which makes dbus-related tests fail - env -u LD_PRELOAD \ + env \ + -u LD_PRELOAD \ + GIO_MODULE_DIR=/nonexistent \ + GIO_USE_VFS=local \ + GIO_USE_VOLUME_MONITOR=unix \ dbus-run-session -- \ xvfb-run -a -s "-screen 0 1024x768x24" \ debian/tests/run-with-locales \ -- 2.30.2